class PayedOrderDetailM {
  PayedOrderDetailM({
      this.orderid, 
      this.areaid, 
      this.vid, 
      this.slng, 
      this.slat, 
      this.smile, 
      this.emile, 
      this.mile, 
      this.ulng, 
      this.ulat, 
      this.elng, 
      this.elat, 
      this.ridingtime, 
      this.costprice, 
      this.exceedtime, 
      this.exceedprice, 
      this.amount, 
      this.ischangeprice, 
      this.coupontype, 
      this.couponid, 
      this.cardid, 
      this.cardprice, 
      this.couponamount, 
      this.cashback, 
      this.givebalance, 
      this.trafficfare, 
      this.rideStatus, 
      this.paytype, 
      this.settle, 
      this.paystatus, 
      this.payno, 
      this.returntype, 
      this.createuserid, 
      this.createusername, 
      this.fromto, 
      this.isrecharge, 
      this.definedid, 
      this.startGroupid, 
      this.vehnof, 
      this.startDistrictId, 
      this.returnDistrictId, 
      this.startAddress, 
      this.returnAddress, 
      this.properties, 
      this.helmetReact, 
      this.faultReport, 
      this.orderType, 
      this.outId, 
      this.prePayAmount, 
      this.brandCode, 
      this.payAmount, 
      this.giftAmount, 
      this.balanceAmount, 
      this.refundStatus, 
      this.refundMoney, 
      this.orderStatus, 
      this.orderStatusRemark, 
      this.startTime, 
      this.endTime, 
      this.openTime, 
      this.lockTime, 
      this.payTime, 
      this.orderStartTime, 
      this.orderEndTime, 
      this.preRefundMoney, 
      this.dailyRidingTimes, 
      this.orderAppealStatus, 
      this.orderAppealId, 
      this.areaName, 
      this.policyNo, 
      this.applyPolicy,});

  PayedOrderDetailM.fromJson(dynamic json) {
    orderid = json['orderid'];
    areaid = json['areaid'];
    vid = json['vid'];
    slng = json['slng'];
    slat = json['slat'];
    smile = json['smile'];
    emile = json['emile'];
    mile = json['mile'];
    ulng = json['ulng'];
    ulat = json['ulat'];
    elng = json['elng'];
    elat = json['elat'];
    ridingtime = json['ridingtime'];
    costprice = json['costprice'];
    exceedtime = json['exceedtime'];
    exceedprice = json['exceedprice'];
    amount = json['amount'];
    ischangeprice = json['ischangeprice'];
    coupontype = json['coupontype'];
    couponid = json['couponid'];
    cardid = json['cardid'];
    cardprice = json['cardprice'];
    couponamount = json['couponamount'];
    cashback = json['cashback'];
    givebalance = json['givebalance'];
    trafficfare = json['trafficfare'];
    rideStatus = json['ride_status'];
    paytype = json['paytype'];
    settle = json['settle'];
    paystatus = json['paystatus'];
    payno = json['payno'];
    returntype = json['returntype'];
    createuserid = json['createuserid'];
    createusername = json['createusername'];
    fromto = json['fromto'];
    isrecharge = json['isrecharge'];
    definedid = json['definedid'];
    startGroupid = json['start_groupid'];
    vehnof = json['vehnof'];
    startDistrictId = json['start_district_id'];
    returnDistrictId = json['return_district_id'];
    startAddress = json['start_address'];
    returnAddress = json['return_address'];
    properties = json['properties'] != null ? Properties.fromJson(json['properties']) : null;
    helmetReact = json['helmet_react'];
    faultReport = json['fault_report'];
    orderType = json['order_type'];
    outId = json['out_id'];
    prePayAmount = json['pre_pay_amount'];
    brandCode = json['brand_code'];
    payAmount = json['pay_amount'];
    giftAmount = json['gift_amount'];
    balanceAmount = json['balance_amount'];
    refundStatus = json['refund_status'];
    refundMoney = json['refund_money'];
    orderStatus = json['order_status'];
    orderStatusRemark = json['order_status_remark'];
    startTime = json['start_time'];
    endTime = json['end_time'];
    openTime = json['open_time'];
    lockTime = json['lock_time'];
    payTime = json['pay_time'];
    orderStartTime = json['order_start_time'];
    orderEndTime = json['order_end_time'];
    preRefundMoney = json['pre_refund_money'];
    dailyRidingTimes = json['daily_riding_times'];
    orderAppealStatus = json['order_appeal_status'];
    orderAppealId = json['order_appeal_id'];
    areaName = json['area_name'];
    policyNo = json['policy_no'];
    applyPolicy = json['apply_policy'] != null ? ApplyPolicy.fromJson(json['apply_policy']) : null;
  }
  String? orderid;
  String? areaid;
  String? vid;
  num? slng;
  num? slat;
  num? smile;
  num? emile;
  num? mile;
  num? ulng;
  num? ulat;
  num? elng;
  num? elat;
  num? ridingtime;
  num? costprice;
  num? exceedtime;
  num? exceedprice;
  num? amount;
  num? ischangeprice;
  num? coupontype;
  String? couponid;
  String? cardid;
  num? cardprice;
  num? couponamount;
  num? cashback;
  num? givebalance;
  num? trafficfare;
  num? rideStatus;
  num? paytype;
  num? settle;
  num? paystatus;
  String? payno;
  num? returntype;
  String? createuserid;
  String? createusername;
  num? fromto;
  num? isrecharge;
  String? definedid;
  String? startGroupid;
  String? vehnof;
  String? startDistrictId;
  String? returnDistrictId;
  String? startAddress;
  String? returnAddress;
  Properties? properties;
  num? helmetReact;
  num? faultReport;
  num? orderType;
  String? outId;
  num? prePayAmount;
  String? brandCode;
  num? payAmount;
  num? giftAmount;
  num? balanceAmount;
  num? refundStatus;
  num? refundMoney;
  num? orderStatus;
  String? orderStatusRemark;
  num? startTime;
  num? endTime;
  num? openTime;
  num? lockTime;
  num? payTime;
  num? orderStartTime;
  num? orderEndTime;
  num? preRefundMoney;
  num? dailyRidingTimes;
  num? orderAppealStatus;
  num? orderAppealId;
  String? areaName;
  String? policyNo;
  ApplyPolicy? applyPolicy;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['orderid'] = orderid;
    map['areaid'] = areaid;
    map['vid'] = vid;
    map['slng'] = slng;
    map['slat'] = slat;
    map['smile'] = smile;
    map['emile'] = emile;
    map['mile'] = mile;
    map['ulng'] = ulng;
    map['ulat'] = ulat;
    map['elng'] = elng;
    map['elat'] = elat;
    map['ridingtime'] = ridingtime;
    map['costprice'] = costprice;
    map['exceedtime'] = exceedtime;
    map['exceedprice'] = exceedprice;
    map['amount'] = amount;
    map['ischangeprice'] = ischangeprice;
    map['coupontype'] = coupontype;
    map['couponid'] = couponid;
    map['cardid'] = cardid;
    map['cardprice'] = cardprice;
    map['couponamount'] = couponamount;
    map['cashback'] = cashback;
    map['givebalance'] = givebalance;
    map['trafficfare'] = trafficfare;
    map['ride_status'] = rideStatus;
    map['paytype'] = paytype;
    map['settle'] = settle;
    map['paystatus'] = paystatus;
    map['payno'] = payno;
    map['returntype'] = returntype;
    map['createuserid'] = createuserid;
    map['createusername'] = createusername;
    map['fromto'] = fromto;
    map['isrecharge'] = isrecharge;
    map['definedid'] = definedid;
    map['start_groupid'] = startGroupid;
    map['vehnof'] = vehnof;
    map['start_district_id'] = startDistrictId;
    map['return_district_id'] = returnDistrictId;
    map['start_address'] = startAddress;
    map['return_address'] = returnAddress;
    if (properties != null) {
      map['properties'] = properties?.toJson();
    }
    map['helmet_react'] = helmetReact;
    map['fault_report'] = faultReport;
    map['order_type'] = orderType;
    map['out_id'] = outId;
    map['pre_pay_amount'] = prePayAmount;
    map['brand_code'] = brandCode;
    map['pay_amount'] = payAmount;
    map['gift_amount'] = giftAmount;
    map['balance_amount'] = balanceAmount;
    map['refund_status'] = refundStatus;
    map['refund_money'] = refundMoney;
    map['order_status'] = orderStatus;
    map['order_status_remark'] = orderStatusRemark;
    map['start_time'] = startTime;
    map['end_time'] = endTime;
    map['open_time'] = openTime;
    map['lock_time'] = lockTime;
    map['pay_time'] = payTime;
    map['order_start_time'] = orderStartTime;
    map['order_end_time'] = orderEndTime;
    map['pre_refund_money'] = preRefundMoney;
    map['daily_riding_times'] = dailyRidingTimes;
    map['order_appeal_status'] = orderAppealStatus;
    map['order_appeal_id'] = orderAppealId;
    map['area_name'] = areaName;
    map['policy_no'] = policyNo;
    if (applyPolicy != null) {
      map['apply_policy'] = applyPolicy?.toJson();
    }
    return map;
  }

}

class Properties {
  Properties({
    this.totalFee,
    this.totalTime,
    this.freeTime,
    this.startFee,
    this.startTimeLimit,
    this.payByStart,
    this.timeCycle,
    this.everyTimeCyclePrice,
    this.payByTime,
    this.paidTime,
    this.maxPrice,
    this.trafficFare,
    this.serviceOutwardFee,
    this.nostopOutwardFee,
    this.helmetFee,
    this.discountAmount,
    this.isReportFault,
    this.standardParkingFee,
    this.ftRidingFeeReduction,
    this.ftTrafficFareReduction,
    this.studyFreeTrafficReduction,
    this.numberReductionType,
    this.numberReduction,});

  Properties.fromJson(dynamic json) {
    totalFee = json['total_fee'];
    totalTime = json['total_time'];
    freeTime = json['free_time'];
    startFee = json['start_fee'];
    startTimeLimit = json['start_time_limit'];
    payByStart = json['pay_by_start'];
    timeCycle = json['time_cycle'];
    everyTimeCyclePrice = json['every_time_cycle_price'];
    payByTime = json['pay_by_time'];
    paidTime = json['paid_time'];
    maxPrice = json['max_price'];
    trafficFare = json['traffic_fare'];
    serviceOutwardFee = json['service_outward_fee'];
    nostopOutwardFee = json['nostop_outward_fee'];
    helmetFee = json['helmet_fee'];
    discountAmount = json['discount_amount'];
    isReportFault = json['is_report_fault'];
    standardParkingFee = json['standard_parking_fee'];
    ftRidingFeeReduction = json['ft_riding_fee_reduction'];
    ftTrafficFareReduction = json['ft_traffic_fare_reduction'];
    studyFreeTrafficReduction = json['study_free_traffic_reduction'];
    numberReductionType = json['number_reduction_type'];
    numberReduction = json['number_reduction'];
  }
  num? totalFee;
  num? totalTime;
  num? freeTime;
  num? startFee;
  num? startTimeLimit;
  num? payByStart;
  num? timeCycle;
  num? everyTimeCyclePrice;
  num? payByTime;
  num? paidTime;
  num? maxPrice;
  num? trafficFare;
  num? serviceOutwardFee;
  num? nostopOutwardFee;
  num? helmetFee;
  num? discountAmount;
  num? isReportFault;
  num? standardParkingFee;
  num? ftRidingFeeReduction;
  num? ftTrafficFareReduction;
  num? studyFreeTrafficReduction;
  num? numberReductionType;
  num? numberReduction;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total_fee'] = totalFee;
    map['total_time'] = totalTime;
    map['free_time'] = freeTime;
    map['start_fee'] = startFee;
    map['start_time_limit'] = startTimeLimit;
    map['pay_by_start'] = payByStart;
    map['time_cycle'] = timeCycle;
    map['every_time_cycle_price'] = everyTimeCyclePrice;
    map['pay_by_time'] = payByTime;
    map['paid_time'] = paidTime;
    map['max_price'] = maxPrice;
    map['traffic_fare'] = trafficFare;
    map['service_outward_fee'] = serviceOutwardFee;
    map['nostop_outward_fee'] = nostopOutwardFee;
    map['helmet_fee'] = helmetFee;
    map['discount_amount'] = discountAmount;
    map['is_report_fault'] = isReportFault;
    map['standard_parking_fee'] = standardParkingFee;
    map['ft_riding_fee_reduction'] = ftRidingFeeReduction;
    map['ft_traffic_fare_reduction'] = ftTrafficFareReduction;
    map['study_free_traffic_reduction'] = studyFreeTrafficReduction;
    map['number_reduction_type'] = numberReductionType;
    map['number_reduction'] = numberReduction;
    return map;
  }

}

class ApplyPolicy {
  ApplyPolicy({
    this.applyPolicyNo,
    this.policyNo,
    this.assuranceNo,
    this.insuranceBeginTime,
    this.insuranceEndTime,
    this.order,});

  ApplyPolicy.fromJson(dynamic json) {
    applyPolicyNo = json['apply_policy_no'];
    policyNo = json['policy_no'];
    assuranceNo = json['assurance_no'];
    insuranceBeginTime = json['insurance_begin_time'];
    insuranceEndTime = json['insurance_end_time'];
    order = json['order'];
  }
  String? applyPolicyNo;
  String? policyNo;
  String? assuranceNo;
  String? insuranceBeginTime;
  String? insuranceEndTime;
  String? order;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['apply_policy_no'] = applyPolicyNo;
    map['policy_no'] = policyNo;
    map['assurance_no'] = assuranceNo;
    map['insurance_begin_time'] = insuranceBeginTime;
    map['insurance_end_time'] = insuranceEndTime;
    map['order'] = order;
    return map;
  }

}